package com.myinternet.lutu;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @MapperScan 扫描mybatis package包路径
 * @EnableScheduling 开启定时任务需要@component申明才能扫描到
 * @EnableAsync 开启异步任务，需要@component和@Async申明才能被spring-boot 容器扫码到
 */
@MapperScan(basePackages = "com.myinternet.lutu.mapper")
@SpringBootApplication
//@EnableScheduling
@EnableAsync
public class LutuApplication {

    public static void main(String[] args) {
        SpringApplication.run(LutuApplication.class, args);
    }

}
